
#include "dominion.h"
#include "dominion_helpers.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>


void testCompare();


int main(int argc, char *argv[])
{
	printf("Testing compare() inside dominion.c\n");
	testCompare();
    return 0;
}

void testCompare(){
	int comp;
	int numA = 1;
	int numB = 1;
	int * a = &numA;
	int * b = &numB;

	// test one: compare(1,1) should return 0
	comp = compare(a,b);
	assert(comp == 0);

	// test two: compare(2,0) should return 1
	numA = 2;
	numB = 0;
	comp = compare(a,b);
	assert(comp == 1);

	// test three: compare(0,2) should return -1
	numA = 0;
	numB = 2;
	comp = compare(a,b);
	assert(comp == -1);

	//
	printf("compare() passed testing.\n");
}
